import { defineConfig } from 'vite'
import { fileURLToPath, URL } from 'node:url'
import uni from '@dcloudio/vite-plugin-uni'
import Unocss from 'unocss/vite'

export default defineConfig({
  plugins: [
    uni(),
    Unocss()
  ],
  transpileDependencies: ['uview-plus'],
  base: './',
  server: {
    port: 2727
  },
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  }
})
